function User(name, age) {
  this.name = name;
  this.age = age;
}

User.prototype.sayHi = function () {
  console.log(`你好，我是${this.name}, 今年${this.age}岁了`);
};

const u1 = new User("zs", 12);
u1.sayHi();
